<template>
    <p>
        Mock 数据：mockjs && vite-plugin-mock
        <button @Click="getUsers">Get Users</button>
    </p>
</template>

<script>

export default {
    setup() {
        const getUsers = () => {
            fetch('/api/getUsers').then(response => response.json())
                .then(res => {
                    console.log('getUsers Success:', res.data);
                })
        }
        return { getUsers }
    }
}
</script>